﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;
using System.Data.SqlClient;

/// <summary>
/// Summary description for StaffDto
/// </summary>
public class StaffDto
{
    #region "variable"
    private int id_Staff;    
    private string _userName;    
    private string _password;    
    private bool _permsion;    
    #endregion
    #region "properties"
    public int Id_Staff
    {
        get { return id_Staff; }
        set { id_Staff = value; }
    }
    public string UserName
    {
        get { return _userName; }
        set { _userName = value; }
    }
    public string Password
    {
        get { return _password; }
        set { _password = value; }
    }
    public bool Permsion
    {
        get { return _permsion; }
        set { _permsion = value; }
    }
    #endregion
    public StaffDto()
	{
		
	}
    public StaffDto(DataRow row)
    {
        this.id_Staff = (int)row["id_Staff"];
        this._userName = (string)row["_userName"];
        this._password = (string)row["_password"];
        this._permsion = bool.Parse(row["_permsion"].ToString());
    }
}